package cn.nawang.ebeim.api.vo;

import java.util.Map;

import cn.nawang.ebeim.api.utils.Constant;

/**
 * @ClassName: UserView
 * @Description: TODO
 * @author 许炜毅
 * @date 2015年8月7日 上午9:50:40
 * @version v1.0
 */
public class UserView {

  // 用户编号
  private String id;
  // 真实姓名
  private String name;
  // 用户名
  private String username;
  // 所属部门名称
  private String departName;
  // 部门编号
  private Integer departId;
  // 手机号
  private String mobile;
  // 电子邮箱
  private String email;
  // 创建日期
  private String createDate;
  // 当前状态(0:正常,1:停用)
  private String status;
  // 客户编号
  private String customerId;

  private String role;

  private String labId;

  private String labType;

  private String isFirstLogin;
  private String spaceSize;
  private String safeLevel;
  private String bindDevice;
  private Long bindTime;

  private String bindDeviceName;

  public UserView() {
    super();
  }

  public UserView(String id, String name, String username, String departName, Integer departId,
      String mobile, String email, String createDate, String status, String customerId, String role,
      String labId, String labType, String isFirstLogin, String spaceSize, String safeLevel,
      String bindDevice, Long bindTime, String bindDeviceName) {
    super();
    this.id = id;
    this.name = name;
    this.username = username;
    this.departName = departName;
    this.departId = departId;
    this.mobile = mobile;
    this.email = email;
    if (createDate.indexOf("/") != -1) {
      this.createDate = createDate.replaceAll("/", "-");
    } else {
      this.createDate = createDate;
    }
    this.status = Constant.getUserStatus(status);
    this.customerId = customerId;
    this.role = role;
    this.labId = labId;
    this.labType = labType;
    this.isFirstLogin = isFirstLogin;
    this.spaceSize = spaceSize;
    this.safeLevel = safeLevel;
    this.bindDevice = bindDevice;
    this.bindTime = bindTime;
    this.bindDeviceName = bindDeviceName;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getMobile() {
    return mobile;
  }

  public void setMobile(String mobile) {
    this.mobile = mobile;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getDepartName() {
    return departName;
  }

  public void setDepartName(String departName) {
    this.departName = departName;
  }

  public Integer getDepartId() {
    return departId;
  }

  public void setDepartId(Integer departId) {
    this.departId = departId;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public String getCreateDate() {
    return createDate;
  }

  public void setCreateDate(String createDate) {
    this.createDate = createDate;
  }

  public String getCustomerId() {
    return customerId;
  }

  public void setCustomerId(String customerId) {
    this.customerId = customerId;
  }

  public String getRole() {
    return role;
  }

  public void setRole(String role) {
    this.role = role;
  }

  public String getLabId() {
    return labId;
  }

  public void setLabId(String labId) {
    this.labId = labId;
  }

  public String getLabType() {
    return labType;
  }

  public void setLabType(String labType) {
    this.labType = labType;
  }

  public String getIsFirstLogin() {
    return isFirstLogin;
  }

  public void setIsFirstLogin(String isFirstLogin) {
    this.isFirstLogin = isFirstLogin;
  }

  public String getSpaceSize() {
    return spaceSize;
  }

  public void setSpaceSize(String spaceSize) {
    this.spaceSize = spaceSize;
  }

  public String getSafeLevel() {
    return safeLevel;
  }

  public void setSafeLevel(String safeLevel) {
    this.safeLevel = safeLevel;
  }

  public String getBindDevice() {
    return bindDevice;
  }

  public void setBindDevice(String bindDevice) {
    this.bindDevice = bindDevice;
  }

  public Long getBindTime() {
    return bindTime;
  }

  public void setBindTime(Long bindTime) {
    this.bindTime = bindTime;
  }

  public String getBindDeviceName() {
    return bindDeviceName;
  }

  public void setBindDeviceName(String bindDeviceName) {
    this.bindDeviceName = bindDeviceName;
  }
  
}
